<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>众筹管理后台</title>
		<link rel="stylesheet" href="/admin/css/bootstrap.min.css" />
		<link rel="stylesheet" href="/admin/css/dashboard.css" />
	</head>
	<body>

		 <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">众筹管理平台</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">

			<ul class="nav navbar-nav navbar-right">
				<li><a href="../index.jsp">首页</a></li>
				<li><a href="#">欢迎,${manage.mname}</a></li>
				<li><a href="#" title="修改个人资料和密码的页面">设置</a></li>
				<li><a href="#" title="退出登录">退出</a></li>
			</ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
        	<ul class="nav nav-sidebar">
				<li ><a href="/admin/index.jsp">首页</a></li>
           </ul>
			<ul class="nav nav-sidebar">
				<li class="active"><a href="/projectManagement/getAll">所有项目*</a></li>
				<li><a href="/projectManagement/getAllNoPro">项目审核</a></li>

				<li><a href="/projectManagement/getAllComment">项目评论</a></li>
				<li><a href="/projectManagement/getAllType">项目分类*</a></li>

			</ul>
			<ul class="nav nav-sidebar">
				<li><a href="/admin/getUsersByCon">注册用户</a></li>
				<li><a href="/admin/getUsersMoney">用户资金</a></li>
				<li><a href="/admin/getUsersReal">实名审核</a></li>
			</ul>
			<ul class="nav nav-sidebar">
				<li><a href="/admin/getNews">新闻管理</a></li>
				<li><a href="/admin/getQuestion">问题管理</a></li>
				<li><a href="/admin/admin_manage.jsp">管理用户</a></li>
				<%--<li><a href="">管理日志</a></li>--%>
			</ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h1 class="page-header">${pro1.ptitle}项目</h1>

			<ul class="nav nav-tabs">
		  <li role="presentation" class="active"><a href="product-info1.jsp">基本信息</a></li>
		</ul>
          <div>
          		<div class="panel panel-default">
				  <div class="panel-heading">
				    <h3 class="panel-title">申请人信息</h3>
				  </div>
				  <div class="panel-body">
				    <p>以下内容仅做示例</p>
				    <table class="table table-bordered">

					  <tr>
					  	<th>申请人</th>
					  	<td>${pro1.real.rname}</td>
					  </tr>
					  <tr>
					  	<th>申请人身份证</th>
					  	<td>${pro1.real.ID}</td>
					  </tr>
					  <tr>
					  	<th>申请人地址</th>
					  	<td>${pro1.psite}</td>
					  </tr>
					  <tr>
					  	<th>客服联系人</th>
					  	<td>疾风剑豪</td>
					  </tr>
					  <tr>
					  	<th>客服联系电话</th>
					  	<td>13343739988</td>
					  </tr>
					  <tr>
					  	<th>其它</th>
					  	<td>无</td>
					  </tr>
					</table>
				  </div>
				</div>

				<div class="panel panel-default">
				  <div class="panel-heading">
				    <h3 class="panel-title">项目信息</h3>
				  </div>
				  <div class="panel-body">
				    <p>以下内容仅做示例</p>
				    <table class="table table-bordered">

					  <tr>
					  	<th>项目类型</th>
					  	<td>${pro1.tname}</td>
					  </tr>
					  <tr>
					  	<th>项目标题</th>
					  	<td>${pro1.ptitle}</td>
					  </tr>
					  <tr>
					  	<th>筹款目的</th>
					  	<td>${pro1.pstory}</td>
					  </tr>
					  <tr>
					  	<th>项目地点</th>
					  	<td>${pro1.psite}</td>
					  </tr>
					  <tr>
					  	<th>筹资金额</th>
					  	<td>${pro1.ptarget}</td>
					  </tr>
					  <tr>
					  	<th>筹资天数</th>
					  	<td>${pro1.pdays}</td>
					  </tr>
					  <tr>
					  	<th>自定义标签</th>
					  	<td>${pro1.plable}</td>
					  </tr>
					  <tr>
					  	<th>其它</th>
					  	<td>无</td>
					  </tr>
					</table>
				  </div>
				</div>


			  <div class="panel panel-default">
				  <div class="panel-heading">
					  <h3 class="panel-title">项目评价</h3>
				  </div>
				  <div class="panel-body">
					  <p>以下内容仅做示例</p>
					  <table class="table table-bordered">

					<thead>
					<tr>
						<th>评论人</th>
						<th>内容</th>
					</tr>
					</thead>
						  <tbody>
                    <c:forEach items="${comments}" var="comment">
						  <tr>
							  <td>${comment.user.uname}</td>
							  <td>${comment.ccontent}</td>
						  </tr>
					</c:forEach>
						  </tbody>
					  </table>
				  </div>
			  </div>




			  <div class="panel panel-default">
				  <div class="panel-heading">
					  <h3 class="panel-title">项目进度</h3>
				  </div>
				  <div class="panel-body">
					  <p>以下内容仅做示例</p>
					  <table class="table table-bordered">

						  <thead>
						  <tr>
							  <th>参与人</th>
							  <th>金额</th>

						  </tr>
						  </thead>
						  <tbody>
						  <c:forEach items="${donates}" var="d">
							  <tr>
								  <td>${d.user.uname}</td>
								  <td>${d.dmoney}</td>
							  </tr>
						  </c:forEach>
						  </tbody>
						  <h3><strong>已筹总金额${pro1.praise}</strong></h3>
						  <h3><strong>目标金额${pro1.ptarget}</strong></h3>
						  <h3><strong>进度${pro1.praise/pro1.ptarget*100}%</strong></h3>
					  </table>
				  </div>
			  </div>

          </div>
        </div>
      </div>
    </div>

		<script type="text/javascript" src="../js/jquery1.12.4.min.js" ></script>
		<script type="text/javascript" src="../js/bootstrap.min.js" ></script>
		<script type="text/javascript" src="../js/countUp.js" ></script>
		<script>
			$(document).ready(function() {

			});
		</script>
	</body>
</html>
